//
//  LWMidCell.h
//  首页数据解析
//
//  Created by mac on 17/3/22.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LWGroupList,LWMidCell;

@protocol LWMidCellDelegate <NSObject>

@required
- (void)changeBadge;
- (void)addInToShopCarWithModel:(LWGroupList *)model;
- (void)deleteFromShopCarWithModel:(LWGroupList *)model;
@optional

//增加
//qishidian
- (void)midCell:(LWMidCell *)midCell didFinishIncreaseFood:(LWGroupList *)food andStartPoint:(CGPoint)starPoint;

//减少
- (void)midCell:(LWMidCell *)midCell didFinishDecreaseFood:(LWGroupList *)food;

@end

@interface LWMidCell : UITableViewCell

@property (strong, nonatomic) LWGroupList *model;

//记录数量属性
@property (assign,nonatomic)NSInteger count;

//增减减少判断的属性
@property (assign,nonatomic)BOOL isInCrease;

//代理属性
@property (weak,nonatomic)id<LWMidCellDelegate>delegate;

//动画起始点
@property (assign,nonatomic)CGPoint starP;


@end
